﻿namespace Bigway.Common.Services.Repositories;

public interface IBaseSqliteEntityRepository<TEntity> : IBaseRepository<TEntity>
{
    Task<TEntity?> GetByIdAsync(string id, CancellationToken token = default);
    Task UpdateAsync(TEntity entity,
        DateTime? updateTime,
        CancellationToken token = default);

    Task UpdateAllAsync(List<TEntity> entities,
        DateTime? updateTime,
        CancellationToken token = default);
}